package grammar;

import java.util.ArrayList;
import java.util.List;

import constraint.Variable;

public class InstantiationInput {
    private List<Variable> inputVariables = new ArrayList<Variable>();
    
    public void add(Variable var) {
        if (var.isSingleton()) {
            System.out.println("ADDING VARIABLE TO INSTANTIATION INPUT THAT IS ALREADY DEFINED!!");
            return;
        }
        this.inputVariables.add(var);
    }
    
    public boolean isVariableDefined(Variable var) {
        return this.inputVariables.contains(var);
    }
}
